<?php 
do{
    echo date('Y-m-d H:i:s')."\n";
    sleep(30);
}while(true);